package com.order.api.dao;

import com.order.api.po.Shops;
import com.order.api.po.ShopsExample;
import java.util.List;

import com.order.api.po.Users;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ShopsDao {
    long countByExample(ShopsExample example);

    int deleteByExample(ShopsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Shops record);

    int insertSelective(Shops record);

    List<Shops> selectByExample(ShopsExample example);

    Shops selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Shops record, @Param("example") ShopsExample example);

    int updateByExample(@Param("record") Shops record, @Param("example") ShopsExample example);

    int updateByPrimaryKeySelective(Shops record);

    int updateByPrimaryKey(Shops record);

    /**
     *修改商品数量
     */
    int updateShopsTotal(@Param("id") int id,@Param("total") int total,@Param("commodityQuantity") int commodityQuantity );




}